package com.jz.partclass.model;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by WISE on 2021/12/27.
 */
@Data
public class PartUpdateVo<T> {
    //1.备件
    @NotNull(message = "ID不能为空")
    private Integer id;
    @NotBlank(message = "备件名称不能为空")
    private String name;
    private String code;

    @NotNull(message = "状态不能为空")
    private Boolean status;
    private  Integer version;
    //2.备件小类
    @NotBlank(message = "备件小类名称不能为空")
    private String subName;
    private String subCode;
    //3.计划大类
    @NotBlank(message = "备件小类名称不能为空")
    private String planName;
    private String planCode;
    //4.法人
//    @NotBlank(message = "法人名称不能为空")
//    private String legalPersonName;
//    @NotBlank(message = "法人编码不能为空")
//    private String legalPersonCode;

    private List<T> legalCodeList;


}
